package com.michale.common.domain.operate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author Michale
 * @apiNote 在线用户
 */
@Data
@ApiModel(value = "sUserOnline对象", description = "操作日志记录")
public class UserOnlineEntity {

    @ApiModelProperty("会话编号")
    private String tokenId;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("登录IP地址")
    private String ipAddress;

    @ApiModelProperty("登录时间")
    private String loginLocation;

    @ApiModelProperty("登录时间")
    private String browser;

    @ApiModelProperty("登录时间")
    private String os;

    @ApiModelProperty("登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date loginTime;
}
